gtk/gtkbuiltinicon.c: Fix build
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 22 Dec 2015 08:33:32 +0000 (16:33 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 22 Dec 2015 08:35:58 +0000 (16:35 +0800)
The gtk_builtin_icon_get_default_size_property returns a const char *,
in a way such that some compilers insist that something that is of a
pointer value be returned, so fix that by replacing 0 with NULL.

gtk/gtkbuiltinicon.c

index 8a57a617faae5dd4ff950aec421d4bbb1136224a..a6974e6e1389b1fab465b4a282cf0b5626b60563 100644 (file)
@@ -271,7 +271,7 @@ gtk_builtin_icon_get_default_size_property (GtkBuiltinIcon *icon)
 {
   GtkBuiltinIconPrivate *priv;
 
-  g_return_val_if_fail (GTK_IS_BUILTIN_ICON (icon), GTK_CSS_IMAGE_BUILTIN_NONE);
+  g_return_val_if_fail (GTK_IS_BUILTIN_ICON (icon), NULL);
 
   priv = gtk_builtin_icon_get_instance_private (icon);